﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTcms.Common;

namespace DTcms.Web.UI
{
    public partial class BasePage : System.Web.UI.Page
    {
        #region 列表标签======================================
        /// <summary>
        /// 文章分页列表(自动页面大小)
        /// </summary>
        /// <param name="category_id">分类ID</param>
        /// <param name="page_size">分页大小</param>
        /// <param name="page_index">当前页码</param>
        /// <param name="strwhere">查询条件</param>
        /// <param name="totalcount">总记录数</param>
        /// <param name="_key">URL配置名称</param>
        /// <param name="_params">传输参数</param>
        /// <returns>DataTable</returns>
        protected DataTable get_qiugou_list(int page_size, int page_index, string strwhere, out int totalcount, out string pagelist, string _key, params object[] _params)
        {
            DataTable dt = new DataTable();

            dt = new BLL.qiugou().GetList(page_size, page_index, strwhere, "add_time desc,id desc", out totalcount).Tables[0];
            pagelist = Utils.OutPageList(page_size, page_index, totalcount, linkurl(_key, _params), 8);

            return dt;
        }

        #endregion


    }
}

